#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QObject>

#include <QMainWindow>
#include <QtWidgets/QGraphicsView>

#include "imageloadingthread.h"
QT_BEGIN_NAMESPACE
namespace Ui
{
    class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    ImageLoadingThread *pThread; // xiancheng;
    QThread *thread;
    void getImage(QImage);
    void kill_thread();
    QGraphicsScene *scene;
public slots:
    int setImages(int index, const QImage &img);

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
